
public class Abstract {


}

interface IBuy {
    void buy();
}

interface IFk {
    void fk();
}

abstract class Human {
    String name;
    int age;

    public Human (int age, String name) {
        this.age = age;
        this.name = name;
    }
}

class Man extends Human implements IBuy, IFk {
    public Man (int age, String name) {
        super (age, name);
    }
    @Override
    public void fk(){
        System.out.println(name + " likes fucking pussy");
    }

    @Override
    public void buy(){
        System.out.println(name + " have bare money to buy in " + age);
    }
}

class Women extends Human implements IBuy, IFk {
    public Women (int age, String name) {
        super (age, name);
    }
    @Override
    public void fk(){
        System.out.println(name + " likes sucking dick");
    }

    @Override
    public void buy(){
        System.out.println(name + " makes money by handjob in " + age);
    }
}

class Test {
    //这里的方法一定是静态的 因为不需要依赖对象
    public static void bu (IBuy b) {
        b.buy();
    }

    public static void f (IFk i) {
        i.fk();
    }

    public static void main(String[] args) {
        Man man = new Man(20,"Matty");
        Women wo = new Women(19,"Lyh");
        bu(man);
        f(man);
        bu(wo);
        f(wo);
    }
}